/*package com.wooophone.mpyeah.test;

import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.wooophone.mpyeah.biz.BrandCommentBiz;
import com.wooophone.mpyeah.biz.BrandCommentReplyBiz;
import com.wooophone.mpyeah.biz.exception.CannotDeleteException;
import com.wooophone.mpyeah.entity.BrandComment;
import com.wooophone.mpyeah.entity.BrandCommentReply;

@ContextConfiguration(locations = { "/spring/applicationContext*.xml" })
public class BrandCommentReplyBizTestCase extends AbstractJUnit4SpringContextTests {
	
	@Autowired
	BrandCommentReplyBiz brandCommentReplyBiz;	
	@Autowired
	BrandCommentBiz brandCommentBiz;
	
	@Test
	public void test(){
		
		BrandComment brandComment=new BrandComment();
		brandComment.setContent("测试评论内容");
		brandComment.setImpression("印象不错");
		brandComment.setTitle("标题嘛");
		
		brandCommentBiz.save(brandComment);
		
		BrandCommentReply brandCommentReply=new BrandCommentReply();
		brandCommentReply.setContent("说得不错");
		brandCommentReply.setCreator("minglic");
		brandCommentReply.setCommentId(brandComment.getId());
		
		brandCommentReplyBiz.save(brandCommentReply);
		
		
		try {
			brandCommentReplyBiz.delete(brandCommentReply.getId());
		} catch (CannotDeleteException e) {
			e.printStackTrace();
		}
		
		try {
			brandCommentBiz.delete(brandComment.getId());
		} catch (CannotDeleteException e) {
			e.printStackTrace();
		}
		
	}
	
}
*/